package com.qianfeng.lingshijia;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

/**
 * Created by Administrator on 2016/1/14.
 */
public class PersonHead extends BaseActivity implements View.OnClickListener{
    private  Button login;
    private Button regit;
    private ImageView headImage;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.person_head);

        login= (Button) findViewById(R.id.id_login);
        regit= (Button) findViewById(R.id.id_re);
        headImage= (ImageView) findViewById(R.id.id_head_image);

        login.setOnClickListener(this);
        regit.setOnClickListener(this);
        headImage.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.id_head_image:
                startActivity(new Intent(this,PersonSetActivity.class));
                break;
            case R.id.id_login:
                startActivity(new Intent(this,PersonLoginActivity.class));
                break;
            case R.id.id_re:
                break;
        }
    }
}
